<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/19
 * Time: 16:04
 */
namespace Publish\Controller;
use Common\Controller\HomebaseController;
include '../Common/function.php';
session_start();
class IndexController extends HomebaseController
{
    protected $terms_model;

    function _initialize() {
        parent::_initialize();
        $this->terms_model = D("Publish/SystemTerms");
    }
    public function index(){
//		unset($_SESSION['videos']);
//		dump($_SESSION['videos']);
//		exit;
//        $keyword=$_POST('keyword');
        $term_list=$this->terms_model
            ->field('name')
            ->where(array("parent"=>0))
            ->order("listorder desc,term_id asc")
            ->select();
//		unset($_SESSION['videos']);
        $this->assign("terms",$term_list);
        $aa=isMobile();
        if($aa){
			$this->display("video_m");
		}else{
			$this->display();
		}
       
    }
}